/**
 * @Description:
 * @Author: Catherine
 * @Date: 2024-05-30 17:08:44
 * @LastEditor: Catherine
 * @LastEditTime: 2024-05-30 17:11:03
 */
import type { DropMenu } from '../components/Dropdown';
import type { SystemSetting, SystemType } from '#/config';

export const SYSTEM: { [key: string]: SystemType } = {
  // Platform: 'Platform',
  // Warehouse: 'Warehouse',
  // Carrier: 'Carrier',
  // Shipper: 'Shipper',
};

export const systemSetting: SystemSetting = {
  showPicker: true,
  // System
  system: '',
  // Default system
  fallback: SYSTEM.Shipper,
  //avaliable systems  SYSTEM.Platform,
  avaliableSystem: [SYSTEM.Shipper, SYSTEM.Warehouse, SYSTEM.Carrier],
};

// locale list
export const systemList: DropMenu[] = [
  {
    text: '货主',
    event: SYSTEM.Shipper,
  },

  {
    text: '仓库',
    event: SYSTEM.Warehouse,
  },
  {
    text: '承运',
    event: SYSTEM.Carrier,
  },
  // {
  //   text: '平台',
  //   event: SYSTEM.Platform,
  // },
];
